//
//  WALocationWeatherValueTransformer.m
//  WeatherApp
//
//  Created by Yuliya Grasevych on 24.10.14.
//  Copyright (c) 2014 Yuliya Grasevych. All rights reserved.
//

#import "WALocationWeatherValueTransformer.h"
#import "WACurrentWeather.h"
#import "WAWeatherProvider.h"

@implementation WALocationWeatherValueTransformer

+(Class)transformedValueClass
{
    return [WACurrentWeather class];
}

-(id)transformedValue:(id)value
{
    WACurrentWeather *weather = [[[WAWeatherProvider sharedInstance] locationsWeathers] objectForKey:value];
    return weather;
}

@end
